-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (69 loc) · 1.96 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.9'
x-shared_environment: &shared_environment
LOG_LEVEL: ${LOG_LEVEL:-info}
JWTS: "${JWTS}"
MONGO_DB_PRODUCTION_URL: "${MONGO_DB_PRODUCTION_URL}"
TWILIO_ACCOUNT_ID: "${TWILIO_ACCOUNT_ID}"
TWILIO_ACCOUNT_SECRET: "${TWILIO_ACCOUNT_SECRET}"
SENDER_NUMBER: "+16097579519"
APNS_KEY_ID: "${APNS_KEY_ID}"
APNS_PRIVATE_KEY: "${APNS_PRIVATE_KEY}"
APNS_TEAM_ID: "${APNS_TEAM_ID}"
APNS_TOPIC: "com.addame.AddaMeIOS"
REDIS_URL_PRODUCTION: '${REDIS_URL_PRODUCTION}'
services:
addame_mongo:
image: mongo:latest
container_name: addameMongoPro
environment:
- AUTH=yes
- MONGODB_ADMIN_USER='${MONGODB_ADMIN_USER}'
- MONGODB_ADMIN_PASS='${MONGODB_ADMIN_PASS}'
- MONGO_INITDB_ROOT_USERNAME='${MONGODB_USER_PRODUCTION}'
- MONGO_INITDB_ROOT_PASSWORD='${MONGODB_PASS_PRODUCTION}'
- MONGO_INITDB_DATABASE='${MONGODB_DATABASE_PRODUCTION}'
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./mongodb/data:/data/db
networks:
- addame_pro_gateway
restart: unless-stopped
addame_server:
image: addamespb/addame_server:latest
container_name: addame_server
build:
context: addameServer
environment:
<<: *shared_environment
ports:
- '8010:8010'
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8010"]
volumes:
- ~/addameServer:/addameServer_data
- ./.env:/app/.env
- ./.env.production:/app/.env.production
depends_on:
- addame_mongo
networks:
- addame_pro_gateway
restart: unless-stopped
env_file:
- ./.env
addame_nginx:
image: nginx:latest
container_name: addame_nginx_rp
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx:/etc/nginx/conf.d:ro
depends_on:
- addame_server
networks:
- addame_pro_gateway
volumes:
addameServer:
redis-persistence-production:
networks:
addame_pro_gateway:
name: Default