-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.27 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
version: "3.4"
x-common-variables: &common-variables
POSTGRES_DB: linguagem-simples
POSTGRES_USER: root
POSTGRES_PASSWORD: linguagem-simples
services:
db:
container_name: linguagem-simples-db
image: postgres
restart: on-failure
environment:
<<: *common-variables
PGDATA: "/var/lib/postgresql/data/"
volumes:
- pg_data:/var/lib/postgresql/data/
backend:
container_name: linguagem-simples-backend
build: .
command: ./start_backend.sh
restart: on-failure
environment:
<<: *common-variables
DEBUG: "True"
SECRET_KEY: "key"
SITE_ID: 1
ALLOWED_HOSTS: "*"
DATABASE_ENGINE: "postgresql"
HOST: "db"
PORT: 5432
LANGUAGE_CODE:
TIME_ZONE:
STATIC_URL: "/static/"
MEDIA_URL: "/media/"
EMAIL_HOST:
EMAIL_PORT:
EMAIL_HOST_USER:
EMAIL_HOST_PASSWORD:
EMAIL_USE_TLS:
DEFAULT_FROM_EMAIL:
CORS_ORIGIN_ALLOW_ALL:
URL_PREFIX:
API_DITEC: "http://localhost:8000/"
WATCHMAN_TOKENS: "key"
WATCHMAN_TOKEN_NAME: "wt"
SITE_DOMAIN: "http://localhost:8000/"
volumes:
- .:/var/labhacker/linguagem_simples_backend
ports:
- "8000:8000"
depends_on:
- db
volumes:
pg_data:
driver: local