-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·59 lines (54 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
executable file
·59 lines (54 loc) · 1.53 KB
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
version: '3.7'
services:
app-shell:
image: doughtnerd/recipe-app-shell:dev
networks:
- recipe-app-network
build:
context: ./recipe-app-shell
ports:
- 80:80
environment:
NGINX_API_PROXY_PASS: 'http://recipes_server:3005'
asset-server:
container_name: assets
image: halverneus/static-file-server:latest
networks:
- recipe-app-network
ports:
- 8080:8080
volumes:
- ./asset-server:/web
recipes_server:
image: doughtnerd/recipe-app-server:dev
container_name: recipes_server
networks:
- recipe-app-network
build:
context: ./recipe-server
target: dev
command: "./bin/wait-for-it.sh mysql:3306 --timeout=30 -- npm run start:dev"
ports:
- 3005:3005
- 9229:9229
environment:
- PORT=3005
volumes:
- ./recipe-server:/usr/src/app
- /usr/src/app/node_modules
mysql:
networks:
- recipe-app-network
image: mysql:latest
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: "password"
MYSQL_DATABASE: "recipe-app-db"
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_PORT: 3306
networks:
recipe-app-network: