-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (78 loc) · 1.93 KB
/
docker-compose.yml
File metadata and controls
82 lines (78 loc) · 1.93 KB
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
networks:
biggr-net:
name: biggr-net
# external: true
external: false
services:
biggr-web:
profiles:
- prod
build: .
restart: always
ports:
- 8910:8910
depends_on:
biggr-db:
condition: service_healthy
networks:
- biggr-net
volumes:
- /data/biggr-bigg-models/:/models
nginx-prod:
profiles:
- prod
container_name: biggr-nginx-prod
build: ./nginx
image: biggr_nginx_prod:latest
restart: always # for the container to be up and running again even after the VM is brought down
volumes:
- /var/www/certbot/:/var/www/certbot/:ro
- /etc/letsencrypt/live/biggr.org/fullchain.pem:/etc/nginx/ssl/live/biggr.org/fullchain.pem # the SSL certificate
- /etc/letsencrypt/live/biggr.org/privkey.pem:/etc/nginx/ssl/live/biggr.org/privkey.pem # the SSL private key
ports:
- 80:80
- 443:443
networks:
- biggr-net
biggr-web-dev:
profiles:
- dev
build:
context: .
dockerfile: ./Dockerfile.dev
ports:
- 80:8910
depends_on:
biggr-db:
condition: service_healthy
networks:
- biggr-net
volumes:
- /data/biggr-bigg-models/:/models
- ./:/server
- /projects/biggr/cobradb/:/cobradb
biggr-db:
container_name: biggr-postgres
image: postgres:17.6
restart: always
ports:
- 5432:5432
volumes:
- /data/biggr-postgres:/var/lib/postgresql/data
- /projects/biggr/biggr_models/db/load-extensions.sh:/docker-entrypoint-initdb.d/load-extensions.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
env_file:
- .env
networks:
- biggr-net
certbot:
profiles:
- prod
image: certbot/certbot:latest
volumes:
- /var/www/certbot/:/var/www/certbot/:rw
- /etc/letsencrypt/:/etc/letsencrypt/:rw