-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 2.12 KB
/
docker-compose.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
version: '3.6'
services:
osmose_back:
build:
context: .
dockerfile: dockerfiles/back.dockerfile
image: osmose_back-image
container_name: osmose_back
user: "101:101"
environment:
ENV: production
STAGING: "${STAGING:-false}"
SECRET_KEY: "${SECRET_KEY}"
OSMOSE_HOST: "${OSMOSE_HOST}"
OSMOSE_DB_HOST: db
OSMOSE_DB_PORT: 5432
OSMOSE_DB_USER: "${OSMOSE_DB_USER}"
OSMOSE_DB_PWD: "${OSMOSE_DB_PWD}"
OSMOSE_DB_BASE: "${OSMOSE_DB_USER}"
OSMOSE_SENTRY_URL: "${OSMOSE_SENTRY_URL}"
OSMOSE_PROXY_URL: "${OSMOSE_PROXY_URL}"
# read_only: true
volumes:
- static:/opt/staticfiles:ro
- ./volumes/datawork:/opt/datawork:ro
restart: always
osmose_front:
build:
context: .
dockerfile: dockerfiles/front.dockerfile
image: osmose_front-image
container_name: osmose_front
user: "101:101"
environment:
OSMOSE_BACK_HOST: osmose_back
volumes:
- static:/opt/staticfiles:ro
- ./volumes/datawork:/opt/datawork:ro
restart: always
db:
image: postgres:13.3-alpine
container_name: osmose_db
environment:
POSTGRES_USER: "${OSMOSE_DB_USER}"
POSTGRES_PASSWORD: "${OSMOSE_DB_PWD}"
volumes:
- ./volumes/postgresql:/var/lib/postgresql/data
restart: always
https-portal:
image: steveltn/https-portal:1.19
container_name: osmose_https-portal
ports:
- '80:80'
- '443:443'
volumes:
- https-portal-data:/var/lib/https-portal
environment:
DOMAINS: "${OSMOSE_HOST} -> http://osmose_front:8080"
STAGE: "${HTTPS_PORTAL_STAGE:-production}"
CLIENT_MAX_BODY_SIZE: 10M
restart: always
# DEV only: Access to DB
# pgadmin:
# container_name: osmose_pgadmin
# image: dpage/pgadmin4:latest
# restart: unless-stopped
# ports:
# - 8080:80
# environment:
# PGADMIN_DEFAULT_EMAIL: admin@osmose.fr
# PGADMIN_DEFAULT_PASSWORD: osmose29
# volumes:
# - pgadmin_data:/var/lib/pgadmin
# links:
# - db:pgsql-server
# depends_on:
# - db
volumes:
https-portal-data:
static:
# pgadmin_data: