-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
69 lines (63 loc) · 1.33 KB
/
docker-compose.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
version: "3"
services:
app:
image: charlottestudious/ball-sort-puzzle:latest
restart: always
ports:
- "3000:3000"
networks:
- awesome
depends_on:
- postgres
postgres:
image: postgres:12
ports:
- "5432:5432"
volumes:
- ./postgresdata:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: newPassword123
POSTGRES_DB: ball-sort-db
networks:
- awesome
pgadmin:
image: dpage/pgadmin4:4.18
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: secret
PGADMIN_LISTEN_PORT: 4000
ports:
- "4000:4000"
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- postgres
networks:
- awesome
nginx:
image: nginx:latest
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf:/etc/letsencrypt:ro
networks:
- awesome
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
networks:
awesome:
driver: bridge
volumes:
postgres:
pgadmin-data:
nginx: