-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
96 lines (90 loc) · 2.19 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.8'
services:
mariadb:
image: mysql:8.0.32
restart: always
environment:
MYSQL_ROOT_PASSWORD: "root"
MARIADB_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "openxeco"
MYSQL_USER: "openxeco"
MYSQL_PASSWORD: "openxeco-pwd"
command:
--sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
ports:
- '3366:3306'
expose:
- '3366'
volumes:
- ./.docker/mariadb/data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "--silent" ]
timeout: 5s
retries: 10
smtp:
image: reachfive/fake-smtp-server
ports:
- "1025:1025"
- "1080:1080"
oxe-web-admin:
build:
context: .
dockerfile: oxe-web-admin/.docker/Dockerfile
tty: true
volumes:
- ./oxe-web-admin:/usr/app
- /usr/app/node_modules
command: npm start
ports:
- "3000:3000"
expose:
- '3000'
oxe-web-community:
build:
context: .
dockerfile: oxe-web-community/.docker/Dockerfile
tty: true
volumes:
- ./oxe-web-community:/usr/app
- /usr/app/node_modules
command: npm start
ports:
- "3001:3001"
expose:
- '3001'
oxe-api:
build:
context: .
dockerfile: oxe-api/.docker/Dockerfile
restart: always
volumes:
- ./.docker/media:/usr/app/media
- ./.docker/documents:/usr/app/documents
- ./oxe-api:/usr/app
ports:
- "5000:5000"
expose:
- '5000'
environment:
DEBUG: "true"
DB_HOSTNAME: "mariadb"
DB_NAME: "openxeco"
DB_USERNAME: "openxeco"
DB_PASSWORD: "openxeco-pwd"
DB_PORT: "3306"
DB_DRIVER: "mysql+pymysql"
JWT_SECRET_KEY: "some_random_secret"
MAIL_SERVER: "smtp"
MAIL_PORT: "1025"
MAIL_USE_TLS: "False"
MAIL_USE_SSL: "False"
IMAGE_FOLDER: "/usr/app/media"
DOCUMENT_FOLDER: "/usr/app/documents"
MAIL_DEFAULT_SENDER: "openxeco@localhost.localdomain"
INITIAL_ADMIN_EMAIL: "admin@localhost.localdomain"
depends_on:
mariadb:
condition: service_healthy
networks:
default:
name: openxeco