-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 905 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 905 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.1'
services:
mariadb:
image: mariadb
restart: always
ports:
- "0.0.0.0:3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
dev:
build: ./
ports:
- "0.0.0.0:8080:8080"
restart: always
volumes:
- ./data/shows/:/app/shows
- ./lib:/app/lib
- ./web:/app/web
- ./test:/app/test
- ./config:/app/config
environment:
- MIX_ENV=dev
- MYSQL_HOST=mariadb
command: mix phx.server
prod:
build: ./
ports:
- "0.0.0.0:8080:8080"
restart: always
environment:
- PORT=8080
- MYSQL_HOST=mariadb
test:
build: ./
environment:
- MIX_ENV=test
- MYSQL_HOST=mariadb
command: exit 0
cypress:
image: cypress/included:6.6
entrypoint: ['bash', '-c', 'exit 0']
volumes:
- ./e2e/cypress:/cypress
- ./e2e/cypress.json:/cypress.json