forked from taroved/pol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
43 lines (40 loc) · 1.04 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
version: "3"
services:
politepol:
build:
context: .
environment:
DB_NAME: 'politepol'
DB_USER: 'rooooooooooot'
DB_PASSWORD: 'toooooooooooor'
DB_HOST: 'dbpolitepol'
DB_PORT: '3306'
WEB_PORT: '8088'
TIME_ZONE: 'America\/Fortaleza'
image: politepol:latest
depends_on:
- 'dbpolitepol'
#command: ["./wait-for-it.sh", "dbpolitepol:3306", "--", "/bin/bash", "./frontend/start.sh"]
command: ["./wait-for-it.sh", "dbpolitepol", "/bin/bash", "./frontend/start.sh"]
container_name: politepol
restart: unless-stopped
networks:
- politepol-network
ports:
- '8088:8088'
dbpolitepol:
image: mysql:5.7
container_name: dbpolitepol
restart: unless-stopped
environment:
MYSQL_DATABASE: 'politepol'
MYSQL_USER: 'rooooooooooot'
MYSQL_PASSWORD: 'toooooooooooor'
MYSQL_ROOT_PASSWORD: 'rootpass'
networks:
- politepol-network
volumes:
- ./mysql:/var/lib/mysql
networks:
politepol-network:
driver: 'bridge'