This repository has been archived by the owner on Dec 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
90 lines (84 loc) · 1.89 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
version: '3.1'
services:
db:
build:
context: .
dockerfile: Dockerfile-mysql
cap_add:
- SYS_NICE # CAP_SYS_NICE
volumes:
- ./db_data:/var/lib/mysql
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: 9784rgsoe97g
MYSQL_DATABASE: nymph_example
MYSQL_USER: nymph_example
MYSQL_PASSWORD: omgomg
# db:
# image: postgres:latest
# volumes:
# - ./db_data:/var/lib/postgresql/data
# environment:
# POSTGRES_USER: nymph_example
# POSTGRES_PASSWORD: omgomg
pubsub:
depends_on:
- db
build:
context: .
dockerfile: Dockerfile-pubsub
volumes:
- .:/nymph
command:
- "/nymph/wait-for-it.sh"
- "db:3306"
# - "db:5432"
- "-t"
- "120"
- "--"
- "php"
- "/nymph/examples/examples/pubsub.php"
ports:
- "8081:8081"
environment:
MYSQL_HOST: db:3306
MYSQL_DATABASE: nymph_example
MYSQL_USER: nymph_example
MYSQL_PASSWORD: omgomg
# PGSQL_HOST: db
# PGSQL_PORT: 5432
# PGSQL_DATABASE: nymph_example
# PGSQL_USER: nymph_example
# PGSQL_PASSWORD: omgomg
TILMELD_SECRET_FILE: /run/secrets/tilmeld_secret
secrets:
- tilmeld_secret
web:
depends_on:
- db
- pubsub
build:
context: .
dockerfile: Dockerfile-web
volumes:
- .:/var/www/html
ports:
- "8080:80"
environment:
MYSQL_HOST: db:3306
MYSQL_DATABASE: nymph_example
MYSQL_USER: nymph_example
MYSQL_PASSWORD: omgomg
# PGSQL_HOST: db
# PGSQL_PORT: 5432
# PGSQL_DATABASE: nymph_example
# PGSQL_USER: nymph_example
# PGSQL_PASSWORD: omgomg
PUBSUB_HOST: pubsub:8081
TILMELD_SECRET_FILE: /run/secrets/tilmeld_secret
secrets:
- tilmeld_secret
secrets:
tilmeld_secret:
file: tilmeld_secret.txt