-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (62 loc) · 1.83 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
services:
backend:
build:
context: .
dockerfile: Dockerfile
container_name: escalaralcoiaicomtat_backend
restart: "no"
environment:
# -- Configure database
DATABASE_DRIVER: "org.postgresql.Driver"
DATABASE_URL: "jdbc:postgresql://db:5432/postgres"
DATABASE_USERNAME: "postgres"
DATABASE_PASSWORD: "AbfEwudQ8AqhhVVqTiRURpbMmQTW46"
# -- Configure Secure Endpoints
AUTH_TOKEN: "cwBsTxhjf8mFQrN8zPUpGstmtCeg3z"
# -- Enable Importer
ENABLE_IMPORTER: "true"
# -- Configure Crowdin
# Required: CROWDIN_TOKEN, CROWDIN_PROJECT_ID
# Optional: CROWDIN_ORGANIZATION
# -- Configure Sentry
# Optional: SENTRY_DSN
# IS_PRODUCTION: false by default
# -- Configure General
SERVER_UUID: "8bb7d337-cd81-45ab-a5e2-cab3f33a7756"
volumes:
- ./files:/var/lib/escalaralcoiaicomtat/files
- ./google-services.json:/var/lib/escalaralcoiaicomtat/google-services.json:ro
networks:
- escalaralcoiaicomtat_backend
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080" ]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
# See https://hub.docker.com/_/postgres for more information
db:
image: postgres
container_name: escalaralcoiaicomtat_backend_db
environment:
POSTGRES_PASSWORD: AbfEwudQ8AqhhVVqTiRURpbMmQTW46 # This should be modified
PGUSER: postgres
networks:
- escalaralcoiaicomtat_backend
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 1s
ports:
- "5432:5432"
networks:
escalaralcoiaicomtat_backend:
name: escalaralcoiaicomtat_backend
volumes:
pgdata: