-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.41 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.4'
services:
pg-admin:
image: dpage/pgadmin4
container_name: pg-admin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PG_ADMIN_USERNAME}
PGADMIN_DEFAULT_PASSWORD: ${PG_ADMIN_PASSWORD}
ports:
- 5050:80
pg-hackharvard:
image: bitnami/postgresql:15.1.0
ports:
- ${PG_HACKHARVARD_PORT}:${PG_HACKHARVARD_PORT}
volumes:
- pg_hackharvard_vol:/bitnami/postgresql
- ./apps/pg-hackharvard/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./apps/pg-hackharvard/docker-entrypoint-preinitdb.d:/docker-entrypoint-preinitdb.d
environment:
POSTGRESQL_USERNAME: ${PG_HACKHARVARD_USERNAME}
POSTGRESQL_PASSWORD: ${PG_HACKHARVARD_PASSWORD}
POSTGRESQL_DATABASE: ${PG_HACKHARVARD_DATABASE_NAME}
user: root
restart: unless-stopped
container_name: pg-hackharvard
logging:
options:
max-size: '10m'
max-file: '3'
hackharvard:
ports:
- 9999:3000
platform: linux/amd64
build:
context: .
dockerfile: ./apps/hackharvard/hackharvard/Dockerfile
container_name: hackharvard
restart: always
env_file:
- .env
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
pg-hackharvard:
condition: service_started
logging:
options:
max-size: '10m'
max-file: '3'
volumes:
pg_hackharvard_vol:
driver: local