-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 881 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (42 loc) · 881 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
45
46
version: '3'
networks:
laravel-sts:
services:
nginx-sts:
image: nginx:1.20.2-alpine
container_name: nginx-sts
ports:
- "9080:80"
volumes:
- ./api-sts:/var/www
- ./nginx/sts/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php-sts
- mysql-sts
networks:
- laravel-sts
mysql-sts:
image: mysql:5.7.22
container_name: mysql-sts
restart: unless-stopped
tty: true
environment:
MYSQL_DATABASE: sts
MYSQL_USER: newuser
MYSQL_PASSWORD: passwor434
MYSQL_ROOT_PASSWORD: passwor434
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- laravel-sts
php-sts:
build:
context: .
dockerfile: STS.Dockerfile
container_name: php-sts
volumes:
- ./api-sts:/var/www
ports:
- "9000:9000"
networks:
- laravel-sts