-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.linux.yml
More file actions
40 lines (39 loc) · 961 Bytes
/
docker-compose.linux.yml
File metadata and controls
40 lines (39 loc) · 961 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
version: "3.9"
services:
db:
image: "mysql:5.7"
container_name: archetype_db
restart: unless-stopped
volumes:
- db_data:/var/lib/mysql
networks:
- archetype_net
env_file:
- .env.test
ports:
# Use port 3307 on the host machine so as not to interfere with another mysql server already running
- "3307:3306"
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
web_service:
env_file:
- .env.test
environment:
- ARCHETYPE_ALLOWED_HOSTS=172\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})
build:
context: .
dockerfile: docker/Dockerfile.web
args:
DATABASE_URL: mysql://$MYSQL_USER:$MYSQL_PASSWORD@db/$MYSQL_DATABASE
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
networks:
- archetype_net
networks:
archetype_net:
driver: bridge
volumes:
db_data: