-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 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
57
# NOTE - A docker-compose.yml for PRODUCTION
version: "3.8"
# SECTION : SERVICES
services:
app:
image: app_prod_image:v1
container_name: app_prod_con
build:
context: ./
dockerfile: Dockerfile
depends_on:
database:
condition: service_healthy
env_file:
- .env.production
expose:
- "3000"
init: true
networks:
production:
ipv4_address: 172.19.0.3
ports:
- "3000:3000"
volumes:
- assets_prod:/app/public/assets/profile-image
database:
image: db_prod_image:v1
container_name: db_prod_con
build:
context: ./database
dockerfile: Dockerfile
env_file:
- .env.production
expose:
- "5432"
init: true
networks:
production:
ipv4_address: 172.19.0.2
volumes:
# Database Volume
- pgdata_prod:/var/lib/postgresql/data/
# SECTION : NETWORKS
networks:
production:
ipam:
config:
- subnet: 172.19.0.0/24
gateway: 172.19.0.1
volumes:
pgdata_prod:
assets_prod: