-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (51 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
63 lines (51 loc) · 1.22 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
58
59
60
61
62
63
version: '3.7'
services:
api:
restart: on-failure
build:
context: .
dockerfile: Docker_local/Dockerfile
environment:
- SECRET_KEY=${SECRET_KEY}
- HOST_ENV=${HOST_ENV}
- DB_NAME=airtech_v1
- DB_PASS=airtech_v1_flashy
- DB_HOST=database
- DB_USER=docker-user
- REDIS_HOST=redis
- REDIS_PORT=6379
- CLOUDINARY_CLOUD_NAME=${CLOUDINARY_CLOUD_NAME}
- CLOUDINARY_API_KEY=${CLOUDINARY_API_KEY}
- CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
volumes:
- .:/airtech-api
ports:
- "9000:9000"
- "8089:8089"
- "5555:5555"
depends_on:
- database
- redis
stdin_open: true
tty: true
database:
restart: on-failure
image: postgres:10.5-alpine
environment:
- POSTGRES_USER=docker-user
- POSTGRES_PASSWORD=airtech_v1_flashy
- POSTGRES_DB=airtech_v1
volumes:
- tmp-docker_db:/var/lib/postgresql/data
ports:
- '5433:5432'
redis:
restart: always
image: redis:alpine
ports:
- '6379:6379'
volumes:
tmp-docker_db: