-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.46 KB
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
57
58
59
60
61
62
services:
# API
api:
container_name: ${PROJECT_NAME}-api
build:
context: ./api
dockerfile: ./.docker/Dockerfile
environment:
- API_PORT=${API_PORT}
volumes:
- ./api:/app
networks:
- default
# FRONT
front:
container_name: ${PROJECT_NAME}-front
build:
context: ./front
dockerfile: ./.docker/Dockerfile
args:
- FRONT_PORT=${FRONT_PORT}
- FRONT_API_HOST=${FRONT_API_HOST}
environment:
- FRONT_PORT=${FRONT_PORT}
- FRONT_API_HOST=${FRONT_API_HOST}
volumes:
- ./front:/app
networks:
- default
# GATEWAY
gateway:
container_name: ${PROJECT_NAME}-gateway
build:
context: ./gateway
dockerfile: ./.docker/Dockerfile
depends_on:
- api
- front
ports:
- 80:80
- 443:443
environment:
- GATEWAY_API_HOST=${GATEWAY_API_HOST}
- GATEWAY_API_PORT=${GATEWAY_API_PORT}
- GATEWAY_API_SERVER_NAME=${GATEWAY_API_SERVER_NAME}
- GATEWAY_FRONT_HOST=${GATEWAY_FRONT_HOST}
- GATEWAY_FRONT_PORT=${GATEWAY_FRONT_PORT}
- GATEWAY_FRONT_SERVER_NAME=${GATEWAY_FRONT_SERVER_NAME}
volumes:
- ./gateway/.docker/nginx.conf:/etc/nginx/nginx.conf.template
- ./gateway/.docker/entrypoint.sh:/entrypoint.sh
- ./gateway/ssl:/etc/nginx/ssl
- ./gateway/logs:/var/log/nginx
networks:
- default
networks:
default:
name: ${PROJECT_NAME}-network
driver: bridge