-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
100 lines (93 loc) · 1.89 KB
/
docker-compose.prod.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
db:
image: postgres:13-alpine
container_name: postgres_db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- my_network
restart: always
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
ports:
- "81:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
depends_on:
- db
networks:
- my_network
restart: always
go_api:
build:
context: .
dockerfile: Dockerfile-go
container_name: go_api
ports:
- "8080:8080"
depends_on:
- db
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
APP_ENV: production
networks:
- my_network
restart: always
frontend:
build:
context: .
dockerfile: Dockerfile-angular
container_name: angular
ports:
- "80:4200"
networks:
- my_network
deploy:
replicas: 3
restart: always
ftp:
image: stilliard/pure-ftpd:hardened
container_name: ftp
ports:
- "21:21"
- "30000-30009:30000-30009"
environment:
PUBLICHOST: "127.0.0.1"
FTP_USER_NAME: "user"
FTP_USER_PASS: "pass"
FTP_USER_HOME: "/home/ftpusers/user"
volumes:
- ftpdata:/home/ftpusers/user
networks:
- my_network
restart: always
ocr:
build:
context: .
dockerfile: Dockerfile-ocr
container_name: ocr
volumes:
- ftpdata:/home/ftpusers/user
networks:
- my_network
restart: always
networks:
my_network:
driver: overlay
volumes:
pgdata:
driver: local
ftpdata:
driver: local