-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.core.yml
45 lines (40 loc) · 1013 Bytes
/
docker-compose.core.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
version: "3.9"
volumes:
papel_db:
name: papel_db
services:
nginx:
image: nginx
container_name: papel_nginx
volumes:
- ./setup/nginx/docker_base.conf:/etc/nginx/nginx.conf:ro
- ./setup/nginx/certificate.conf:/etc/nginx/certificate.conf:ro
- ./logs/nginx:/var/log/nginx
- /etc/letsencrypt:/etc/letsencrypt:ro
ports:
- "80:80"
- "443:443"
profiles:
- live_prod
db:
container_name: papel_postgres
build:
context: .
dockerfile: setup/postgres/Dockerfile
restart: always
environment:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
DB_NAME: "${DB_NAME}"
DB_USER: "${DB_USER}"
DB_PASSWORD: "${DB_PASSWORD}"
volumes:
- papel_db:/var/lib/postgresql/data
rabbitmq:
container_name: papel_rabbitmq
image: rabbitmq:3.8-management
restart: on-failure
ports:
- "5672:5672"
- "15672:15672"