-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 888 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 888 Bytes
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
version: "3.9"
services:
mysql:
image: "mysql:8"
environment:
- MYSQL_USER=wp
- MYSQL_PASSWORD=secret
- MYSQL_DATABASE=wpinterview
- MYSQL_ROOT_PASSWORD=verysecret
httpbin:
image: "kennethreitz/httpbin"
server:
build: .
ports:
- "8080:8080"
links:
- mysql
- worker
depends_on:
- mysql
- httpbin
environment:
- DB_URL=mysql
- DB_USER=wp
- DB_NAME=wpinterview
- DB_PASSWORD=secret
command: ["wait-for-it.sh", "-t", "360", "mysql:3306", "--", "app", "--server"]
# worker:
# build: .
# links:
# - mysql
# - httpbin
# depends_on:
# - mysql
# environment:
# - DB_URL=mysql
# - DB_USER=wp
# - DB_NAME=wpinterview
# - DB_PASSWORD=secret
# command: ["wait-for-it.sh", "-t", "360", "mysql:3306", "--", "app", "--worker"]