-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
72 lines (69 loc) · 2.12 KB
/
docker-compose.yaml
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
version: '3'
services:
db:
image: mysql:8.0
container_name: myjob-db-container
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=P@ssword
volumes:
- ./data/myjob_db.sql:/docker-entrypoint-initdb.d/data.sql
- myjob-volume:/var/lib/mysql
networks:
- myjob-backend-network
ports:
- "3307:3306"
expose:
- 3006
backend:
image: myjob-backend
container_name: myjob-backend-container
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
- APP_ENV=${APP_ENV}
- DEBUG=${DEBUG}
- APPEND_SLASH=${APPEND_SLASH}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}
- DB_ENGINE=${DB_ENGINE}
- DB_HOST=${DB_HOST}
- DB_NAME=${DB_NAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_PORT=${EMAIL_PORT}
- SERVICE_REDIS_HOST=${SERVICE_REDIS_HOST}
- SERVICE_REDIS_PASSWORD=${SERVICE_REDIS_PASSWORD}
- SERVICE_REDIS_PORT=${SERVICE_REDIS_PORT}
- SERVICE_REDIS_USERNAME=${SERVICE_REDIS_USERNAME}
- SERVICE_REDIS_DB=${SERVICE_REDIS_DB}
- SOCIAL_AUTH_FACEBOOK_KEY=${SOCIAL_AUTH_FACEBOOK_KEY}
- SOCIAL_AUTH_FACEBOOK_SECRET=${SOCIAL_AUTH_FACEBOOK_SECRET}
- SOCIAL_AUTH_GOOGLE_OAUTH2_KEY=${SOCIAL_AUTH_GOOGLE_OAUTH2_KEY}
- SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET=${SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET}
- TWILIO_ACCOUNT_SID=${TWILIO_ACCOUNT_SID}
- TWILIO_AUTH_TOKEN=${TWILIO_AUTH_TOKEN}
- TWILIO_PHONE=${TWILIO_PHONE}
- CLOUDINARY_CLOUD_NAME=${CLOUDINARY_CLOUD_NAME}
- CLOUDINARY_API_KEY=${CLOUDINARY_API_KEY}
- CLOUDINARY_API_SECRET=${CLOUDINARY_API_SECRET}
- WEB_CLIENT_URL=${WEB_CLIENT_URL}
networks:
- myjob-backend-network
ports:
- "8001:8000"
expose:
- 8000
depends_on:
- db
networks:
myjob-backend-network:
name: myjob-backend-network
volumes:
myjob-volume: