-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.55 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
60
61
62
63
64
65
66
67
version: "3.8"
services:
# db:
# #command: docker run -it --rm mysql mysql -h 127.0.0.1 -p 3306 --user=root --password=root influenceurbusiness
# image: mysql:8.0
# cap_add:
# - SYS_NICE
# restart: always
# environment:
# MYSQL_DATABASE: 'influenceurbusiness'
# MYSQL_ROOT_PASSWORD: 'root'
# ports:
# # <Port exposed> : < MySQL Port running inside container>
# - '3306:3306'
# networks:
# - shared-network
# expose:
# # Opens port 3306 on the container
# - '3306'
# # Where our data will be persisted
# volumes:
# - db:/var/lib/mysql
# - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
back:
container_name: influenceurbusiness_api
restart: unless-stopped
image: influenceurbusiness_api-prod:1.0.0
build:
context: back
target: back
dockerfile: Dockerfile
ports:
- 3000:3000
expose:
- '3000'
networks:
- shared-network
# depends_on:
# #should wait for the db to be launched before lauching the api
# - db
front:
container_name: influenceurbusiness_front
restart: unless-stopped
image: influenceurbusiness_front-prod:1.0.0
build:
context: front
target: front
dockerfile: Dockerfile
ports:
- 5000:5000
expose:
- '5000'
networks:
- shared-network
depends_on:
#should wait for the api to be launched before lauching the client
- back
networks:
shared-network:
volumes:
#db:
front:
back: