-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-prod.yml
41 lines (39 loc) · 1.01 KB
/
docker-compose-prod.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
services:
paybutton:
container_name: paybutton-dev
restart: always
depends_on:
- users-service
- cache
build: .
ports:
- "3000:3000"
- "5000:5000"
volumes:
- .:/home/node/src
- ./logs:/home/node/.pm2/logs
command: bash ./scripts/paybutton-server-start.sh
users-service:
container_name: paybutton-users-service
depends_on:
- cache
image: registry.supertokens.io/supertokens/supertokens-mysql:6.0
restart: always
ports:
- 3567:3567
environment:
MYSQL_DATABASE_NAME: supertokens
MYSQL_USER: ${SUPERTOKENS_DB_USER}
MYSQL_PASSWORD: ${SUPERTOKENS_DB_PASSWORD}
MYSQL_HOST: ${MAIN_DB_HOST}
MYSQL_PORT: ${MAIN_DB_PORT}
cache:
container_name: paybutton-cache
image: redis:6.2-alpine
restart: always
ports:
- 6379:6379
volumes:
- ./redis:/data/redis:z
- ./scripts:/data/scripts
command: sh -c "sed -i 's/\\r//g' ./scripts/redis-start.sh && sh ./scripts/redis-start.sh"