-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-staging.yml
82 lines (78 loc) · 1.92 KB
/
docker-compose-staging.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
80
81
82
version: '3.3'
services:
# database:
# build: ./docker/db
# container_name: venosdbservice
# image: venos/mysql:1.0.0
# ports:
# - '6000:3306'
# volumes:
# - dbdata:/var/lib/mysql
# restart: always
# command: mysqld --init-file="/usr/src/db/config/init.sql"
# environment:
# MYSQL_ROOT_PASSWORD: 'admin123'
# MYSQL_DATABASE: 'venos'
# deploy:
# resources:
# limits:
# cpus: '0.50'
# memory: 256M
orderService:
build:
context: .
dockerfile: ./orderService/Dockerfile
container_name: orderservice
restart: always
image: venos/orderservice:1.0.0
ports:
- '3000:3000'
#links:
# - database
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
environment:
- db_host=venosdb.c5hcdvwwmarq.eu-central-1.rds.amazonaws.com
- db_database=venosdb
- db_username=dbadmin
- db_password=bokerTov1!
- server_conversationServiceDomain=venos-stg.natiziv.com
conversationService:
build: ./conversationService
container_name: conversationservice
restart: always
image: venos/conversationservice:1.0.0
ports:
- '8080:8080'
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
environment:
- server_orderServiceDomain=venos-stg.natiziv.com
letsencrypt:
restart: always
image: linuxserver/letsencrypt
container_name: letsencrypt
ports:
- '80:80'
- '443:443'
links:
- conversationService
- orderService
volumes:
- './web/conf:/config/nginx/site-confs:ro'
- './web/certs:/config/etc/letsencrypt:rw'
- './web/public:/public:ro'
environment:
- URL=natiziv.com
- SUBDOMAINS=venos-stg
- ONLY_SUBDOMAINS=true
- VALIDATION=http
#volumes:
#dbdata: