-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
53 lines (53 loc) · 1.11 KB
/
docker-compose.yaml
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
version: "3.8"
services:
mysql:
image: agray998/animal-noise-db:latest
build: ./db
volumes:
- type: volume
source: animal-vol
target: /var/lib/mysql
networks:
- "animal-net"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: animal_db
front-end:
image: agray998/animal-noise-front:latest
build: ./front-end
networks:
- "animal-net"
depends_on:
- "mysql"
- "animal-api"
- "noise-api"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
animal-api:
image: agray998/animal-noise-animal:latest
build: ./animal-api
networks:
- "animal-net"
noise-api:
image: agray998/animal-noise-noise:latest
build: ./noise-api
networks:
- "animal-net"
nginx:
image: nginx:latest
ports:
- published: 80
target: 80
protocol: tcp
volumes:
- type: bind
source: ./nginx.conf
target: /etc/nginx/nginx.conf
networks:
- "animal-net"
depends_on:
- "front-end"
volumes:
animal-vol:
networks:
animal-net: