-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·55 lines (51 loc) · 1.48 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
version: "3"
services:
database:
container_name: pluma-online-database
build:
context: ${PWD}/docker/mongodb
dockerfile: Dockerfile-mongo
command: ["--keyFile", "/data/mongodb.key", "--replSet", "dbrs", "--bind_ip_all"]
env_file: .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
networks:
- web
volumes:
- database:/data/db
restart: unless-stopped
healthcheck:
test: test $$(echo "rs.initiate({_id:'dbrs',members:[{_id:0,host:\"database\"}]}).ok || rs.status().ok" | mongo -u $${MONGO_INITDB_ROOT_USERNAME} -p $${MONGO_INITDB_ROOT_PASSWORD} --quiet) -eq 1
interval: 100s
webapp:
container_name: pluma-online-webapp
build:
context: ./
dockerfile: Dockerfile
depends_on:
- database
ports:
- "4200:4200"
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
environment:
APP_HOST: ${APP_HOST}
APP_ADMIN_EMAIL: ${APP_ADMIN_EMAIL}
APP_ADMIN_PASSWORD: ${APP_ADMIN_PASSWORD}
APP_JWT_SECRET: ${APP_JWT_SECRET}
RECAPTCHA_SITE_KEY: ${RECAPTCHA_SITE_KEY}
DATABASE_URL: ${DATABASE_URL}
SMTP_USER: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PORT}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
volumes:
web:
database:
networks:
web: