-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
54 lines (51 loc) · 1.41 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
# to launch production docker compose, run
# docker-compose up -d
#
# To launch a development environment, run
# docker-compose up -d
# and
# npm run client
#
version: "3.4"
services:
server:
build:
context: .
dockerfile: server.Dockerfile
container_name: flink-packages-server
environment:
MYSQL_HOST: database
MYSQL_USER: flink_ecosystem
MYSQL_PASSWORD: test
MYSQL_DATABASE: flink_ecosystem
SITE_DOMAIN: ${SITE_DOMAIN}
GITHUB_CLIENT: ${GITHUB_CLIENT}
GITHUB_SECRET: ${GITHUB_SECRET}
EMAIL_ADDRESS: ${EMAIL_ADDRESS}
EMAIL_TO_ADDRESS: ${EMAIL_TO_ADDRESS}
EMAIL_SERVICE_CLIENT: ${EMAIL_SERVICE_CLIENT}
EMAIL_PRIVATE_KEY: ${EMAIL_PRIVATE_KEY}
NODE_ENV: production
NODE_PATH: src/
ports:
- "4000:4000"
volumes:
- ./public:/node/public:ro
- ./src/server:/node/src/server:ro
command: npm run server
database:
image: mariadb:10
container_name: mariadb-server
environment:
MYSQL_USER: flink_ecosystem
MYSQL_PASSWORD: test
MYSQL_DATABASE: flink_ecosystem
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
volumes:
- ./src/server/sql/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
- ./src/server/sql/fixtures.sql.gz:/docker-entrypoint-initdb.d/02-fixtures.sql.gz:ro
- mariadb-data:/var/lib/mysql:rw
ports:
- "3306:3306"
volumes:
mariadb-data: