-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 1.04 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
54
55
56
version: '3.8'
networks:
default:
services:
client:
depends_on:
- api
build:
context: ./client
container_name: client
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
ports:
- '3000:3000'
restart: always
env_file:
- .env
- ./client/.env.local
networks:
- default
api:
build:
context: ./api
target: ${BACKEND_STAGE}
container_name: api
volumes:
- ./api:/app
- ./api/node_modules:/app/node_modules
ports:
- '3001:3001'
restart: always
env_file:
- .env
- ./api/.env.local
networks:
- default
nginx:
image: nginx
container_name: nginx
depends_on:
- api
- client
volumes:
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/log:/var/log/nginx
# - ./nginx/html:/var/www/html
# - ./nginx/certs:/tmp/certs # key.pem cert.pem
ports:
- '80:80'
# - '443:443'
restart: always
networks:
- default