This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yaml
76 lines (74 loc) · 1.62 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
frontend:
container_name : nginx_container
image: nginx:latest
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
- ./frontend/build/:/usr/share/nginx/html/build/:rw
networks:
docker_network:
ipv4_address: 10.5.0.3
db:
container_name: db
image: 'postgres:latest'
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${PGU}
- POSTGRES_PASSWORD=${PGP}
- POSTGRES_DB=postgres
ports:
- 5432:5432
networks:
docker_network:
ipv4_address: 10.5.0.8
dind:
container_name: dind
image: docker:dind
privileged: true
volumes:
- /var/lib/docker
ports:
- 2375:2375
networks:
docker_network:
ipv4_address: 10.5.0.4
pgadmin:
container_name: container-pgadmin
image: dpage/pgadmin4
depends_on:
- db
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
restart: unless-stopped
networks:
docker_network:
ipv4_address: 10.5.0.13
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
networks:
docker_network:
ipv4_address: 10.5.0.14
volumes:
postgres-data:
secrets:
db-password:
file: backend/db/password.txt
networks:
docker_network:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1