-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 947 Bytes
/
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
services:
db:
image: postgres:16-alpine
volumes:
- postgresql_data:/var/lib/postgresql/data
container_name: neighborfood-database
env_file: ./env/postgres.env
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: pg_isready -d $$POSTGRES_DB -h db -p 5432 -U $$POSTGRES_USER
interval: 5s
timeout: 5s
retries: 5
app:
image: migprogrammer/neighborfood-img:aws-v2
container_name: neighborfood-app
ports:
- "82:82"
env_file: ./env/app.env
depends_on:
db:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: curl -v http://app:82/neighborfood/menu
interval: 5s
timeout: 5s
retries: 5
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
depends_on:
- app
restart: unless-stopped
volumes:
postgresql_data: