-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 910 Bytes
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
services:
# Set up my-app
app:
build: .
image: 01barthez/iphone-cameroon
container_name: iphone-cameroon-app
ports:
- '4000:4000'
secrets:
- app_env
volumes:
- ./:/app
- ./logs:/app/logs
networks:
- iphone-cameroon
command: ['yarn', 'start']
# Set up nginx service as reverse proxy
nginx:
image: nginx:1.27.2-alpine-slim
restart: always
container_name: iphone-cameroon-nginx
volumes:
- ./nginx-config:/etc/nginx/conf.d
- ./logs/nginx:/var/log/nginx
ports:
- '8080:80'
secrets:
- app_env
networks:
- iphone-cameroon
depends_on:
- app
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost']
interval: 20s
timeout: 10s
retries: 3
secrets:
app_env:
file: .env
volumes:
nginx-config:
networks:
iphone-cameroon:
driver: bridge