generated from GDGVIT/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-prod.yaml
55 lines (50 loc) · 1.03 KB
/
docker-compose-prod.yaml
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
version: '3'
services:
hexathon-api:
build:
context: .
dockerfile: Dockerfile
container_name: hexathon-api
ports:
- 3000:3000
volumes:
- ./:/user/src/app
env_file:
- ./hexathon-api/.env/.production
depends_on:
- postgres
networks:
- hexathon-network
restart: always
postgres:
image: postgres
container_name: hexathon-postgres
volumes:
- postgres-db:/var/lib/postgresql/data
env_file:
- ./hexathon-api/.env/.production
ports:
- 5432:5432
networks:
- hexathon-network
# Generating SSL certificates using traefik
traefik:
build:
context: .
dockerfile: ./traefik/Dockerfile
container_name: hexathon-traefik
depends_on:
- hexathon-api
volumes:
- traefik-volume:/etc/traefik/acme:z
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
- "0.0.0.0:5555:5555"
networks:
- hexathon-network
volumes:
postgres-db:
traefik-volume:
networks:
hexathon-network: