-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.prod.yml
64 lines (58 loc) · 1.62 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
#Flask service
flask:
build:
context: .
dockerfile: ./docker/nginx-uwsgi-flask/Dockerfile.prod
ports:
- 5000:80
depends_on:
- mariadb
restart: unless-stopped
environment:
#database configuration
MARIADB_HOST: mariadb
MARIADB_USER: ${DB_LOWP_USER}
MARIADB_PASSWORD: ${DB_LOWP_USER_PASSWORD}
MARIADB_DATABASE: ${DB_DBNAME}
#pusher configuration
PUSHER_APP_ID: ${PUSHER_APP_ID}
PUSHER_KEY: ${PUSHER_KEY}
PUSHER_SECRET: ${PUSHER_SECRET}
PUSHER_HOST: soketi #when self hosting, this is the internal resource
PUSHER_HOST_WEB: 127.0.0.1 #when self hosting, this is the host url
PUSHER_PORT: 6001
PUSHER_CLUSTER: ${PUSHER_CLUSTER}
#MariaDb Service
mariadb:
build:
context: ./docker/mariadb
dockerfile: Dockerfile
ports:
- 3306:3306
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MARIADB_USER: ${DB_LOWP_USER}
MARIADB_PASSWORD: ${DB_LOWP_USER_PASSWORD}
MARIADB_DATABASE: ${DB_DBNAME}
MARIADB_PORT_NUMBER: 3306
volumes:
- morsechatdb:/bitnami/mariadb/data
#Soketi service
soketi:
image: "quay.io/soketi/soketi:89604f268623cf799573178a7ba56b7491416bde-16-debian"
ports:
- "6001:6001"
- "9601:9601"
environment:
DEBUG: 1
DEFAULT_APP_ID: ${PUSHER_APP_ID}
DEFAULT_APP_KEY: ${PUSHER_KEY}
DEFAULT_APP_SECRET: ${PUSHER_SECRET}
volumes:
- ./soketi-config.json:/opt/soketi/soketi-config.json:ro
command:
- "--config=/opt/soketi/soketi-config.json"
# Volumes
volumes:
morsechatdb: